package com.fsq.portscan.model;

import java.io.Serializable;

import javafx.beans.property.BooleanProperty;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.LongProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleLongProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class Row implements Serializable{

	private static final long serialVersionUID = 1L;
	private StringProperty address;
	private BooleanProperty ssl;
	private StringProperty server;
	private StringProperty title;
	private IntegerProperty statuscode;
	private LongProperty contentLength;
	private StringProperty response;
	private StringProperty realIp;

	public Row(String address, Boolean ssl, String server, String title, Integer statuscode, Long contentLength,
			String response,String realIp) {
		super();
		this.address = new SimpleStringProperty(address);
		this.ssl = new SimpleBooleanProperty(ssl);
		this.server = new SimpleStringProperty(server);
		this.title = new SimpleStringProperty(title);
		this.statuscode = new SimpleIntegerProperty(statuscode);

		this.contentLength = new SimpleLongProperty(contentLength);
		this.response = new SimpleStringProperty(response);

		this.realIp = new SimpleStringProperty(realIp);
	}

	public StringProperty addressProperty() {
		return address;
	}

	public BooleanProperty sslProperty() {
		return ssl;
	}

	public StringProperty serverProperty() {
		return server;
	}

	public StringProperty titleProperty() {
		return title;
	}

	public IntegerProperty statuscodeProperty() {
		return statuscode;
	}

	public LongProperty contentLengthProperty() {
		return contentLength;
	}

	public StringProperty responseProperty() {
		return response;
	}

	public StringProperty realIpProperty() {
		return realIp;
	}

}
